package com.swu.education.repository;

import com.swu.education.entity.User;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User,Integer>{

	//通过groupId查找用户
	public List<User> findByGroupId(Integer groupId);

	public User findUserByStudentNumberAndPassword(String studentNumber,String password);

	public User findById(int id);

	public User findByStudentNumber(String studentNumber);
}
